<!DOCTYPE html>
<head>
    <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="You can integrate font icons through the Font Awesome and Glyphical Halflings libraries. These libraries allow you to embed icons through their libraries del...">
<meta name="keywords" content="formatting,  font icons, buttons, images, vectors, font awesome, glyphicons">
<title>Icons | 常见故障解决方案</title>
<link rel="stylesheet" href="css/syntax.css">


<link rel="stylesheet" type="text/css" href="css/font-awesome.min-4.5.0.css">
<!--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">-->
<link rel="stylesheet" href="css/modern-business.css">
<link rel="stylesheet" href="css/lavish-bootstrap.css">
<link rel="stylesheet" href="css/customstyles.css">
<link rel="stylesheet" href="css/theme-blue.css">


<script type="text/javascript" charset="utf8" src="js/jquery.js"></script>
<script src="js/jquery.cookie.min.js"></script>
<script src="js/jquery.navgoco.min.js"></script>


<script src="js/bootstrap.min.js"></script>
<script src="js/anchor.min.js"></script>
<script src="js/toc.js"></script>
<script src="js/customscripts.js"></script>

<link rel="shortcut icon" href="images/favicon.ico">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://cdn.bootcss.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://cdn.bootcss.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->

<link rel="alternate" type="application/rss+xml" title="" href="feed.xml">

    <script>
        $(document).ready(function() {
            // Initialize navgoco with default options
            $("#mysidebar").navgoco({
                caretHtml: '',
                accordion: true,
                openClass: 'active', // open
                save: false, // leave false or nav highlighting doesn't work right
                cookie: {
                    name: 'navgoco',
                    expires: false,
                    path: '/'
                },
                slide: {
                    duration: 400,
                    easing: 'swing'
                }
            });

            $("#collapseAll").click(function(e) {
                e.preventDefault();
                $("#mysidebar").navgoco('toggle', false);
            });

            $("#expandAll").click(function(e) {
                e.preventDefault();
                $("#mysidebar").navgoco('toggle', true);
            });

        });

    </script>
    <script>
        $(function () {
            $('[data-toggle="tooltip"]').tooltip()
        })
    </script>

    

</head>
<body>
<!-- Navigation -->
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container topnavlinks">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="fa fa-home fa-lg navbar-brand" href="index.html">&nbsp;<span class="projectTitle"> 常见故障解决方案</span></a>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <!-- entries without drop-downs appear here -->
                
                
                
                <li><a href="index.html">重新搜索</a></li>
                
                
                
                <!-- entries with drop-downs appear here -->
                <!-- conditional logic to control which topnav appears for the audience defined in the configuration file.-->
                
                
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">其他文档入口<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        
                        
                        <li><a href="index.html">常见故障解决方案</a></li>
                        
                        
                        
                        <li><a href="p1_sample1.html">常用语法</a></li>
                        
                        
                    </ul>
                </li>
                
                
                
			<li><a class="email" title="问题反馈" href="#" onclick="javascript:window.location='mailto:Merlin_Wu@apllogistics.com?subject=《常见故障解决方案》反馈&body=%0D____________________________________________________________________%0D问题页面：%09Icons %0D问题地址：%09' + window.location.href;"><i class="fa fa-envelope-o"></i> 邮件反馈</a><li>

		
                <!--comment out this block if you want to hide search-->
                <li>
                    <!--start search-->
                    <!-- <div id="search-demo-container">
                        <input type="text" id="search-input" placeholder="search...">
                        <ul id="results-container"></ul>
                    </div>
                    <script src="js/jekyll-search.js" type="text/javascript"></script>
                    <script type="text/javascript">
                            SimpleJekyllSearch.init({
                                searchInput: document.getElementById('search-input'),
                                resultsContainer: document.getElementById('results-container'),
                                dataSource: 'search.json',
                                searchResultTemplate: '<li><a href="{url}" title="Icons">{title}</a></li>',
                    noResultsText: 'No results found.',
                            limit: 10,
                            fuzzy: true,
                    })
                    </script> -->
                    <!--end search-->
                </li>
            </ul>
        </div>
        </div>
        <!-- /.container -->
</nav>

<!-- Page Content -->
<div class="container">
    <div class="col-lg-12">&nbsp;</div>
    <!-- Content Row -->
    <div class="row">
        <!-- Sidebar Column -->
        <div class="col-md-3">

          












<!--  -->


<ul id="mysidebar" class="nav">
    <li class="sidebarTitle">目录 </li>
    
    
    
        
    
    <li>
        <a href="#">常用操作</a>
        <ul>
            
            
            
            <li><a href="index.html">搜索</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_introduction.html">Introduction</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_supported_features.html">Supported features</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_about.html">About the theme author</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_support.html">Support</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Release Notes</a>
        <ul>
            
            
            
            <li><a href="mydoc_release_notes_60.html">6.0 Release notes</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_release_notes_50.html">5.0 Release notes</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Installation</a>
        <ul>
            
            
            
            <li><a href="mydoc_about_ruby_gems_etc.html">About Ruby, Gems, Bundler, etc.</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_install_jekyll_on_mac.html">Install Jekyll on Mac</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_install_jekyll_on_windows.html">Install Jekyll on Windows</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Authoring</a>
        <ul>
            
            
            
            <li><a href="mydoc_pages.html">Pages</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_posts.html">Posts</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_lists.html">Lists</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_conditional_logic.html">Conditional logic</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_content_reuse.html">Content reuse</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_collections.html">Collections</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_webstorm_text_editor.html">WebStorm editor tips</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_atom_text_editor.html">Atom editor tips</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Navigation</a>
        <ul>
            
            
            
            <li><a href="mydoc_sidebar_navigation.html">Sidebar navigation</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_yaml_tutorial.html">YAML tutorial in the context of Jekyll</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_tags.html">Tags</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_series.html">Series</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Formatting</a>
        <ul>
            
            
            
            <li><a href="mydoc_adding_tooltips.html">Tooltips</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_alerts.html">Alerts</a></li>
            
            
            
            
            
            
            <li class="active"><a href="mydoc_icons.html">Icons</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_images.html">Images</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_code_samples.html">Code samples</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_labels.html">Labels</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_hyperlinks.html">Links</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_navtabs.html">Navtabs</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_tables.html">Tables</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_syntax_highlighting.html">Syntax highlighting</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_workflow_maps.html">Workflow maps</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Handling reviews</a>
        <ul>
            
            
            
            <li><a href="mydoc_commenting_on_files.html">Commenting on files</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Publishing</a>
        <ul>
            
            
            
            <li><a href="mydoc_build_arguments.html">Build arguments</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_themes.html">Themes</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_generating_pdfs.html">Generating PDFs</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_help_api.html">Help APIs and UI tooltips</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_search_configuration.html">Search configuration</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_iterm_profiles.html">iTerm profiles</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_push_build_to_server.html">Pushing builds to server</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_no_password_prompts_scp.html">Getting around the password prompts in SCP</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_publishing_github_pages.html">Publishing on Github Pages</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Special layouts</a>
        <ul>
            
            
            
            <li><a href="mydoc_kb_layout.html">Knowledge-base layout</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_glossary.html">Glossary layout</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_faq_layout.html">FAQ layout</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_scroll.html">Scroll layout</a></li>
            
            
            
            
            
            
            <li><a href="mydoc_shuffle.html">Shuffle layout</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Troubleshooting</a>
        <ul>
            
            
            
            <li><a href="mydoc_troubleshooting.html">Troubleshooting</a></li>
            
            
            
            
        </ul>
        
        
    
    <li>
        <a href="#">Tag archives</a>
        <ul>
            
            
            
            <li><a href="mydoc_tag_archives_overview.html">Tag archives overview</a></li>
            
            
            
            <li class="subfolders">
                <a href="#">Tag archive pages</a>
                <ul>
                    
                    
                    
                    <li><a href="tag_formatting.html">Formatting pages</a></li>
                    
                    
                    
                    
                    
                    <li><a href="tag_navigation.html">Navigation pages</a></li>
                    
                    
                    
                    
                    
                    <li><a href="tag_content_types.html">Content types pages</a></li>
                    
                    
                    
                    
                    
                    <li><a href="tag_publishing.html">Publishing pages</a></li>
                    
                    
                    
                    
                    
                    <li><a href="tag_special_layouts.html">Special layout pages</a></li>
                    
                    
                    
                    
                    
                    <li><a href="tag_collaboration.html">Collaboration pages</a></li>
                    
                    
                    
                    
                    
                    <li><a href="tag_troubleshooting.html">Troubleshooting pages</a></li>
                    
                    
                    
                </ul>
            </li>
            
            
            
            
        </ul>
        
        
        
        <!-- if you aren't using the accordion, uncomment this block:
           <p class="external">
               <a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
           </p>
           -->
    </li>
</ul>
</div>

<!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.-->
<script>$("li.active").parents('li').toggleClass("active");</script>

    <!-- Content Column -->
    <div class="col-md-9">
        <div class="post-header">
   <h1 class="post-title-main">Icons</h1>
</div>



<div class="post-content">

   
    <div class="summary">You can integrate font icons through the Font Awesome and Glyphical Halflings libraries. These libraries allow you to embed icons through their libraries delivered as a link reference. You don't need any image libraries downloaded in your project.</div>
   

    
    
<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
<script>
$( document ).ready(function() {
  // Handler for .ready() called.

$('#toc').toc({ minimumHeaders: 0, listType: 'ul', showSpeed: 0, headers: 'h2,h3,h4' });

/* this offset helps account for the space taken up by the floating toolbar. */
$('#toc').on('click', 'a', function() {
  var target = $(this.getAttribute('href'))
    , scroll_target = target.offset().top

  $(window).scrollTop(scroll_target - 10);
  return false
})
  
});
</script>

<div id="toc"></div>

    

    

    

    

  <h2 id="font-icon-options">Font icon options</h2>
<p>The theme has two font icon sets integrated: Font Awesome and Glyphicons Halflings. The latter is part of Bootstrap, while the former is independent. Font icons allow you to insert icons drawn as vectors from a CDN (so you don’t have any local images on your own site).</p>

<h2 id="see-font-awesome-icons-available">See Font Awesome icons available</h2>

<p>Go to the <a href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome library</a> to see the available icons.</p>

<p>The Font Awesome icons allow you to adjust their size by simply adding <code class="highlighter-rouge">fa-2x</code>, <code class="highlighter-rouge">fa-3x</code> and so forth as a class to the icon to adjust their size to two times or three times the original size. As vector icons, they scale crisply at any size.</p>

<p>Here’s an example of how to scale up a camera icon:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro"</span><span class="nt">&gt;&lt;/i&gt;</span> normal size (1x)
<span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-lg"</span><span class="nt">&gt;&lt;/i&gt;</span> fa-lg
<span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-2x"</span><span class="nt">&gt;&lt;/i&gt;</span> fa-2x
<span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-3x"</span><span class="nt">&gt;&lt;/i&gt;</span> fa-3x
<span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-4x"</span><span class="nt">&gt;&lt;/i&gt;</span> fa-4x
<span class="nt">&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-camera-retro fa-5x"</span><span class="nt">&gt;&lt;/i&gt;</span> fa-5x
</code></pre>
</div>

<p>Here’s what they render to:</p>

<p><i class="fa fa-camera-retro"></i> 1x
<i class="fa fa-camera-retro fa-lg"></i> fa-lg
<i class="fa fa-camera-retro fa-2x"></i> fa-2x
<i class="fa fa-camera-retro fa-3x"></i> fa-3x
<i class="fa fa-camera-retro fa-4x"></i> fa-4x
<i class="fa fa-camera-retro fa-5x"></i> fa-5x</p>

<p>With Font Awesome, you always use the <code class="highlighter-rouge">i</code> tag with the appropriate class. You also implement <code class="highlighter-rouge">fa</code> as a base class first. You can use font awesome icons inside other elements. Here I’m using a Font Awesome class inside a Bootstrap alert:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"alert alert-danger"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">&gt;&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-exclamation-circle"</span><span class="nt">&gt;&lt;/i&gt;</span> <span class="nt">&lt;b&gt;</span>Warning: <span class="nt">&lt;/b&gt;</span>This is a special warning message.
</code></pre>
</div>

<p>Here’s the result:</p>

<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle fa-lg"></i> This is a special warning message.</div>

<p>The notes, tips, warnings, etc., are pre-coded with Font Awesome and stored in the alerts.yml file. That file includes the following:</p>

<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">tip</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="alert</span><span class="nv"> </span><span class="s">alert-success"</span><span class="nv"> </span><span class="s">role="alert"&gt;&lt;i</span><span class="nv"> </span><span class="s">class="fa</span><span class="nv"> </span><span class="s">fa-check-square-o"&gt;&lt;/i&gt;</span><span class="nv"> </span><span class="s">&lt;b&gt;Tip:</span><span class="nv"> </span><span class="s">&lt;/b&gt;'</span>
<span class="s">note</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="alert</span><span class="nv"> </span><span class="s">alert-info"</span><span class="nv"> </span><span class="s">role="alert"&gt;&lt;i</span><span class="nv"> </span><span class="s">class="fa</span><span class="nv"> </span><span class="s">fa-info-circle"&gt;&lt;/i&gt;</span><span class="nv"> </span><span class="s">&lt;b&gt;Note:</span><span class="nv"> </span><span class="s">&lt;/b&gt;'</span>
<span class="s">important</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="alert</span><span class="nv"> </span><span class="s">alert-warning"</span><span class="nv"> </span><span class="s">role="alert"&gt;&lt;i</span><span class="nv"> </span><span class="s">class="fa</span><span class="nv"> </span><span class="s">fa-warning"&gt;&lt;/i&gt;</span><span class="nv"> </span><span class="s">&lt;b&gt;Important:</span><span class="nv"> </span><span class="s">&lt;/b&gt;'</span>
<span class="s">warning</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="alert</span><span class="nv"> </span><span class="s">alert-danger"</span><span class="nv"> </span><span class="s">role="alert"&gt;&lt;i</span><span class="nv"> </span><span class="s">class="fa</span><span class="nv"> </span><span class="s">fa-exclamation-circle"&gt;&lt;/i&gt;</span><span class="nv"> </span><span class="s">&lt;b&gt;Warning:</span><span class="nv"> </span><span class="s">&lt;/b&gt;'</span>
<span class="s">end</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;/div&gt;'</span>

<span class="s">callout_danger</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="bs-callout</span><span class="nv"> </span><span class="s">bs-callout-danger"&gt;'</span>
<span class="s">callout_default</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="bs-callout</span><span class="nv"> </span><span class="s">bs-callout-default"&gt;'</span>
<span class="s">callout_primary</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="bs-callout</span><span class="nv"> </span><span class="s">bs-callout-primary"&gt;'</span>
<span class="s">callout_success</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="bs-callout</span><span class="nv"> </span><span class="s">bs-callout-success"&gt;'</span>
<span class="s">callout_info</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="bs-callout</span><span class="nv"> </span><span class="s">bs-callout-info"&gt;'</span>
<span class="s">callout_warning</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;div</span><span class="nv"> </span><span class="s">class="bs-callout</span><span class="nv"> </span><span class="s">bs-callout-warning"&gt;'</span>

<span class="s">hr_faded</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;hr</span><span class="nv"> </span><span class="s">class="faded"/&gt;'</span>
<span class="s">hr_shaded</span><span class="pi">:</span> <span class="s1">'</span><span class="s">&lt;hr</span><span class="nv"> </span><span class="s">class="shaded"/&gt;'</span>
</code></pre>
</div>

<p>This means you can insert a tip, note, warning, or important alert simply by using these tags.</p>

<div class="language-liquid highlighter-rouge"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">include</span><span class="w"> </span><span class="na">note</span><span class="p">.</span><span class="na">html</span><span class="w"> </span><span class="na">content</span><span class="o">=</span><span class="s2">"Add your note here."</span><span class="w"> </span><span class="p">%}</span>
</code></pre>
</div>

<div class="language-liquid highlighter-rouge"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">include</span><span class="w"> </span><span class="na">tip</span><span class="p">.</span><span class="na">html</span><span class="w"> </span><span class="na">content</span><span class="o">=</span><span class="s2">"Add your tip here."</span><span class="w"> </span><span class="p">%}</span>
</code></pre>
</div>

<div class="language-liquid highlighter-rouge"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">include</span><span class="w"> </span><span class="na">important</span><span class="p">.</span><span class="na">html</span><span class="w"> </span><span class="na">content</span><span class="o">=</span><span class="s2">"Add your important info here."</span><span class="w"> </span><span class="p">%}</span>
</code></pre>
</div>

<div class="language-liquid highlighter-rouge"><pre class="highlight"><code><span class="p">{%</span><span class="w"> </span><span class="nt">include</span><span class="w"> </span><span class="na">warning</span><span class="p">.</span><span class="na">html</span><span class="w"> </span><span class="na">content</span><span class="o">=</span><span class="s2">"Add your warning here."</span><span class="w"> </span><span class="p">%}</span>
</code></pre>
</div>

<p>Here’s the result:</p>

<div class="alert alert-info" role="alert"><i class="fa fa-info-circle"></i> <b>Note:</b> Add your note here.</div>

<div class="alert alert-success" role="alert"><i class="fa fa-check-square-o"></i> <b>Tip:</b> Here’s my tip.</div>

<div class="alert alert-warning" role="alert"><i class="fa fa-warning"></i> <b>Important:</b> This information is very important.</div>

<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-circle"></i> <b>Warning:</b> If you overlook this, you may die.</div>

<p>The color scheme is the default colors from Bootstrap. You can modify the icons or colors as needed.</p>

<h2 id="creating-your-own-combinations">Creating your own combinations</h2>

<p>You can innovate with your own combinations. Here’s a similar approach with a file download icon:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"alert alert-success"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">&gt;&lt;i</span> <span class="na">class=</span><span class="s">"fa fa-download fa-lg"</span><span class="nt">&gt;&lt;/i&gt;</span> This is a special tip about some file to download....<span class="nt">&lt;/div&gt;</span>
</code></pre>
</div>

<p>And the result:</p>

<div class="alert alert-success" role="alert"><i class="fa fa-download fa-lg"></i> This is a special tip about some file to download....</div>

<p>Grab the right class name from the <a href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome library</a> and then implement it by following the pattern shown previously.</p>

<p>If you want to make your fonts even larger than the 5x style, add a custom style to your stylesheet like this:</p>

<div class="language-css highlighter-rouge"><pre class="highlight"><code><span class="nc">.fa-10x</span><span class="p">{</span><span class="nl">font-size</span><span class="p">:</span><span class="m">1700%</span><span class="p">;}</span>
</code></pre>
</div>

<p>Then any element with the attribute <code class="highlighter-rouge">fa-10x</code> will be enlarged 1700%.</p>

<h2 id="glyphicon-icons-available">Glyphicon icons available</h2>

<p>Glyphicons work similarly to Font Awesome. Go to the <a href="http://getbootstrap.com/components/#glyphicons">Glyphicons library</a> to see the icons available.</p>

<p>Although the Glyphicon Halflings library doesn’t provide the scalable classes like Font Awesome, there’s a <a href="http://stackoverflow.com/questions/24960201/how-do-i-make-glyphicons-bigger-change-size">StackOverflow trick</a>  to make the icons behave in a similar way. This theme’s stylesheet (customstyles.css) includes the following to the stylesheet:</p>

<div class="language-css highlighter-rouge"><pre class="highlight"><code><span class="nc">.gi-2x</span><span class="p">{</span><span class="nl">font-size</span><span class="p">:</span> <span class="m">2em</span><span class="p">;}</span>
<span class="nc">.gi-3x</span><span class="p">{</span><span class="nl">font-size</span><span class="p">:</span> <span class="m">3em</span><span class="p">;}</span>
<span class="nc">.gi-4x</span><span class="p">{</span><span class="nl">font-size</span><span class="p">:</span> <span class="m">4em</span><span class="p">;}</span>
<span class="nc">.gi-5x</span><span class="p">{</span><span class="nl">font-size</span><span class="p">:</span> <span class="m">5em</span><span class="p">;}</span>
</code></pre>
</div>

<p>Now you just add <code class="highlighter-rouge">gi-5x</code> or whatever to change the size of the font icon:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"glyphicon glyphicon-globe gi-5x"</span><span class="nt">&gt;&lt;/span&gt;</span>
</code></pre>
</div>

<p>And here’s the result:</p>

<p><span class="glyphicon glyphicon-globe gi-5x"></span></p>

<p>Glypicons use the <code class="highlighter-rouge">span</code> element instead of <code class="highlighter-rouge">i</code> to attach their classes.</p>

<p>Here’s another example:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"glyphicon glyphicon-download"</span><span class="nt">&gt;&lt;/span&gt;</span>
</code></pre>
</div>

<p><span class="glyphicon glyphicon-download"></span></p>

<p>And magnified:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"glyphicon glyphicon-download gi-3x"</span><span class="nt">&gt;&lt;/span&gt;</span>
</code></pre>
</div>

<p><span class="glyphicon glyphicon-download gi-3x"></span></p>

<p>You can also put glyphicons inside other elements:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"alert alert-danger"</span> <span class="na">role=</span><span class="s">"alert"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;span</span> <span class="na">class=</span><span class="s">"glyphicon glyphicon-exclamation-sign"</span> <span class="na">aria-hidden=</span><span class="s">"true"</span><span class="nt">&gt;&lt;/span&gt;</span>
  <span class="nt">&lt;b&gt;</span>Error:<span class="nt">&lt;/b&gt;</span> Enter a valid email address
<span class="nt">&lt;/div&gt;</span>
</code></pre>
</div>

<div class="alert alert-danger" role="alert">
  <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
  <b>Error:</b> Enter a valid email address
</div>

<h2 id="callouts">Callouts</h2>

<p>The previously shown alerts might be fine for short messages, but with longer notes, the solid color takes up a bit of space. In this theme, you also have the option of using callouts, which are pretty common in Bootstrap’s documentation but surprisingly not offered as an explicit element. Their styles have been copied into this theme, in a way similar to the alerts:</p>

<div class="language-html highlighter-rouge"><pre class="highlight"><code><span class="nt">&lt;div</span> <span class="na">class=</span><span class="s">"bs-callout bs-callout-info"</span><span class="nt">&gt;</span>
 This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. <span class="nt">&lt;/div&gt;</span>
</code></pre>
</div>

<div class="alert alert-info" role="alert"><span class="glyphicon glyphicon-question-sign"></span> This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. This is a special info message. </div>

<p>And here’s the shortcode:</p>

<div class="highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="err">{site.data.alerts.callout_info</span><span class="p">}</span><span class="err">This</span><span class="w"> </span><span class="err">is</span><span class="w"> </span><span class="err">a</span><span class="w"> </span><span class="err">special</span><span class="w"> </span><span class="err">callout</span><span class="w"> </span><span class="err">information</span><span class="w"> </span><span class="err">message.</span><span class="w">

</span></code></pre>
</div>

<p>Here’s the result:</p>

<div class="bs-callout bs-callout-info">This is a special callout information message.

You can use any of the following:

```
{{site.data.alerts.callout_default}}
{{site.data.alerts.callout_primary}}
{{site.data.alerts.callout_success}}
{{site.data.alerts.callout_info}}
{{site.data.alerts.callout_warning}}
```


The only difference is the color of the left bar.

Callouts are explained in a bit more detail in [Alerts][mydoc_alerts].








[titlepage]: titlepage




[tocpage]: tocpage






[index]: index.html




[mydoc_introduction]: mydoc_introduction.html




[mydoc_supported_features]: mydoc_supported_features.html




[mydoc_about]: mydoc_about.html




[mydoc_support]: mydoc_support.html






[mydoc_release_notes_60]: mydoc_release_notes_60.html




[mydoc_release_notes_50]: mydoc_release_notes_50.html






[mydoc_about_ruby_gems_etc]: mydoc_about_ruby_gems_etc.html




[mydoc_install_jekyll_on_mac]: mydoc_install_jekyll_on_mac.html




[mydoc_install_jekyll_on_windows]: mydoc_install_jekyll_on_windows.html






[mydoc_pages]: mydoc_pages.html




[mydoc_posts]: mydoc_posts.html




[mydoc_lists]: mydoc_lists.html




[mydoc_conditional_logic]: mydoc_conditional_logic.html




[mydoc_content_reuse]: mydoc_content_reuse.html




[mydoc_collections]: mydoc_collections.html




[mydoc_webstorm_text_editor]: mydoc_webstorm_text_editor.html




[mydoc_atom_text_editor]: mydoc_atom_text_editor.html






[mydoc_sidebar_navigation]: mydoc_sidebar_navigation.html




[mydoc_yaml_tutorial]: mydoc_yaml_tutorial.html




[mydoc_tags]: mydoc_tags.html




[mydoc_series]: mydoc_series.html






[mydoc_adding_tooltips]: mydoc_adding_tooltips.html




[mydoc_alerts]: mydoc_alerts.html




[mydoc_icons]: mydoc_icons.html




[mydoc_images]: mydoc_images.html




[mydoc_code_samples]: mydoc_code_samples.html




[mydoc_labels]: mydoc_labels.html




[mydoc_hyperlinks]: mydoc_hyperlinks.html




[mydoc_navtabs]: mydoc_navtabs.html




[mydoc_tables]: mydoc_tables.html




[mydoc_syntax_highlighting]: mydoc_syntax_highlighting.html




[mydoc_workflow_maps]: mydoc_workflow_maps.html






[mydoc_commenting_on_files]: mydoc_commenting_on_files.html






[mydoc_build_arguments]: mydoc_build_arguments.html




[mydoc_themes]: mydoc_themes.html




[mydoc_generating_pdfs]: mydoc_generating_pdfs.html




[mydoc_help_api]: mydoc_help_api.html




[mydoc_search_configuration]: mydoc_search_configuration.html




[mydoc_iterm_profiles]: mydoc_iterm_profiles.html




[mydoc_push_build_to_server]: mydoc_push_build_to_server.html




[mydoc_no_password_prompts_scp]: mydoc_no_password_prompts_scp.html




[mydoc_publishing_github_pages]: mydoc_publishing_github_pages.html






[mydoc_kb_layout]: mydoc_kb_layout.html




[mydoc_glossary]: mydoc_glossary.html




[mydoc_faq_layout]: mydoc_faq_layout.html




[mydoc_scroll]: mydoc_scroll.html




[mydoc_shuffle]: mydoc_shuffle.html






[mydoc_troubleshooting]: mydoc_troubleshooting.html






[mydoc_tag_archives_overview]: mydoc_tag_archives_overview.html



[tag_formatting]: tag_formatting.html

[tag_navigation]: tag_navigation.html

[tag_content_types]: tag_content_types.html

[tag_publishing]: tag_publishing.html

[tag_special_layouts]: tag_special_layouts.html

[tag_collaboration]: tag_collaboration.html

[tag_troubleshooting]: tag_troubleshooting.html










[titlepage]: titlepage




[tocpage]: tocpage






[p1_sample1]: p1_sample1.html










[mydoc_hyperlinks.html#automatedlinks]: mydoc_hyperlinks.html#automatedlinks




[mydoc_hyperlinks.html#bookmarklinks]: mydoc_hyperlinks.html#bookmarklinks




[mydoc_pages.html#someIdTag]: mydoc_pages.html#someIdTag













[index]: index.html










[index]: index.html



[p1_sample1]: p1_sample1.html






</div>


    <div class="tags">
        
        <b>Tags: </b>
        
        
        
        <a href="tag_formatting.html" class="btn btn-default navbar-btn cursorNorm" role="button">formatting</a>
        
        
        
    </div>

    

</div>

<hr class="shaded"/>

<footer>
            <div class="row">
                <div class="col-lg-12 footer">
               &copy;2016 . All rights reserved. <br />
<span>Page last updated:</span> July 16, 2016<br/> Site last generated: Oct 8, 2016 <br />
<!-- <p><img src="images/company_logo.png" alt="Company logo"/></p> -->
                </div>
            </div>
</footer>


    </div>
    <!-- /.row -->
</div>
<!-- /.container -->
    </div>

</body>

</html>
